#include <TrafficLight.h>
Inheritance diagram for TrafficLight:

Public Member Functions | |
| TrafficLight (OSGWindows *osgwind__) | |
| TrafficLight (OSGWindows *osgwind, TrafficLightTypes newType, TrafficLightColor newColor, TrafficLightColor newArrowColor=YESIL) | |
| ~TrafficLight () | |
| void | setColor (TrafficLightColor color) |
| void | draw (osg::ref_ptr< osg::Group > root, int animationFlag=-1) |
| TrafficLightColor | getColor () |
| TrafficLightColor | getArrowColor () |
| TrafficLightTypes | getTrafficLightType () |
| void | setNewFramesLightColor (int oldFrameId, int newFrameId) |
| void | changeColor (int frameId) |
| void | changeColorAnim (int frameId) |
| void | fillColorArray (TrafficLightColor newcolor) |
| TrafficLightColor | getFrameColor (int frameId) |
| void | setFrameColor (int frameId, int color) |
Public Attributes | |
| osg::ref_ptr< osg::Sequence > | seqNode |
Private Attributes | |
| TrafficLightTypes | lightType |
| TrafficLightColor | color |
| TrafficLightColor | arrowColor |
| int | colorArray [101] |
| OSGWindows * | osgwind_ |
|
|
Constructor for the Traffic Light. The Ligth is created with default parameters.
|
|
||||||||||||||||||||
|
Constructor for the Traffic Light.
|
|
|
A destructor for the Traffic Light. |
|
|
Responsible from the color change of the Traffic Light.
|
|
|
Resonsible from changing the color of the Traffic Light during animation.
|
|
||||||||||||
|
The function responsible from the addition of Traffic Light to the scene root.
Implements TraffEduObject. |
|
|
Responsible from filling the color array of a TrafficLight. Each Traffic Light holds a coor array in which they hold the color values of the light in each frame.
|
|
|
Getter for the arrow color of the TrafficLight
|
|
|
Getter for the color of the TrafficLight
|
|
|
Getter for the color of the TrafficLigth for a specific frame.
|
|
|
Getter for the type of the TrafficLight
|
|
|
Setter for the light of the Traffic Light.
|
|
||||||||||||
|
Setter for the color of TrafficLight for a specific frame.
|
|
||||||||||||
|
Setter for the color of the TrafficLight in frame
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
A public pointer to Sequence Node. |
1.4.6-NO